<div class="container">
      <div class="row">
        <div class="col-md-12">
          <div class="panel panel-visible">
            <div class="panel-heading">
              <div class="panel-title hidden-xs"> <span class="glyphicon glyphicon-tasks"></span>Chi tiết đơn hàng [<abbr style="color: #990000"><?php echo $data->code_order?></abbr>]</div>
            </div>
            <ul class="nav panel-tabs" style="float: right;margin-top: -45px;margin-right: 10px;">
                <li class="active"><button onclick="window.location='<?php echo $baseurl.'manage/order.html'?>'" type="button" class="btn btn-info btn-gradient btn-sm">Quay lại danh sách</button></li>
              </ul>
            <div class="panel-body padding-bottom-none">
            <div style="width: 100%;float: left;">
                <div style="width: 50%;float: left">
                    <ul>
                        <li>Mã đơn hàng: <b><?php echo $data->code_order?></b></li>
                        <li>Họ tên: <b><?php echo $data->fullname?></b></li>
                        <li>Số điện thoại: <b><?php echo $data->phone?></b></li>
                        <li>Địa chỉ: <b><?php echo $data->address?></b></li>
                        <li>Thời gian đặt hàng: <b><?php echo $data->time?></b></li>
                    </ul>
                </div>
                <div style="width: 50%;float: left">
                    <ul>
                        <li>Yêu cầu: <b><?php echo $data->yck == '' ? 'Không có yêu cầu khác' : $data->yck?></b></li>
                    </ul>
                </div>
            </div>
              <table class="table table-striped table-bordered table-hover" id="datatable">
                <thead>
                  <tr style="background: #fcfcfc;color: #666">
                    <th style="width: 5%">STT</th>
                    <th style="width: 40px;">Hình ảnh</th>
                    <th>Món ăn</th>
                    <th>Đơn giá</th>
                    <th>Số lượng</th>
                    <th>Thành tiền</th>
                  </tr>
                </thead>
                <tbody>
                <?php $totsal = 0; $i = 1; $datas = json_decode($data->content); foreach($datas AS $el=>$le):?>
                  <tr>
                    <td><span class="xedit"><?php echo $i;?></span></td>
                    <td class="hidden-xs hidden-sm"><center><img style="width: 100px;height: 66px" src="<?php echo $baseurl.$le->options->images?>" /></center></td>
                    <td class="hidden-xs hidden-sm"><?php echo $le->name?></td>
                    <td class="hidden-xs"><span class="xedit"><?php echo $le->price?></span></td>
                    <td class="hidden-xs"><span class="xedit"><?php echo $le->qty?></span></td>
                    <td class="hidden-xs" style="text-align: center"><?php echo number_format($le->qty * $le->price, '0','', '.')?> <u>đ</u></td>
                  </tr>
                <?php $totsal += $le->subtotal; $i++; endforeach;?>
                <tr style="font-weight: bold">
                    <td class="hidden-xs" colspan="5"><span style="float:  right;">Tổng tiền</span></td>
                    <td class="hidden-xs" style="text-align: center"><?php echo number_format($totsal, '0','', '.');?> <u>đ</u></td>
                  </tr>
                </tbody>
              </table>
              
            
            </div>
          </div>
        </div>
      </div>
    </div>